/*
 * IC Project - a prototype to test a hypothesis of collective intelligence
 * Copyright (C) 2012 Paolo Conte - paolo@concavi.net
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.ix.data.entities;

public class User {

    private String username = "";
    private String basepwd = "";
    private String adminpwd = "";

    public User(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isLogged() {
        return username != null && username.length() > 0;
    }

    /**
     * @return the basepwd
     */
    public String getBasePassword() {
        return basepwd;
    }

    /**
     * @param basepwd the basepwd to set
     */
    public void setBasepwd(String basepwd) {
        this.basepwd = basepwd;
    }

    /**
     * @return the adminpwd
     */
    public String getAdminPassword() {
        return adminpwd;
    }

    /**
     * @param adminpwd the adminpwd to set
     */
    public void setAdminpwd(String adminpwd) {
        this.adminpwd = adminpwd;
    }
}
